<%@taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix = "fmt" uri = "http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix = "fn" uri = "http://java.sun.com/jsp/jstl/functions"%>

<div class="dayplanner">
    <p class="title"><fmt:message key = "day.dayrequest"/></p> 
      	<c:choose>
        <c:when test="${fn:length(rList) != 0}">
         <c:forEach var = "request" items = "${rList}">
               <p>
                 <c:out value="${request.id}"/>|<c:out value="${request.client.formName}"/>|<c:out value="${request.organization.shortTitle}"/>|<br>
                 [<a class = "control" href = 'leadexecutorui?_action=requestDetails&request_id=${request.id}'>
                   <fmt:message key = "request.operations.view"/>
                 </a>]
               </p>
         </c:forEach>
      </c:when>
      <c:otherwise>
        <p><fmt:message key="emptyList"/></p>
      </c:otherwise>     
      </c:choose> 
</div>